﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace ConsoleApp1
{
    enum Task
    {
        ///<summary>
        ///送信NPC
        ///</summary>
        Deliver,
        ///<summary>
        ///杀怪NPC
        ///</summary>
        Kill,
        ///<summary>
        ///采集NPC
        ///</summary>
        Collect

    }
    class TaskNPC:NPC
    {
        public string taskinfo;

        public override void Speack()
        {
            Console.WriteLine("哦豁，你终于来咯，快来和我一起做任务吧！");
            Console.WriteLine("NPC:{0},任务:{1}",base.name,this.taskinfo);
        }
        public string Taskinfo
        {
            get { return this.taskinfo; }
            set { this.taskinfo = value; }
        }
        public TaskNPC(string name, NPCType type, string taskinfo) : base(name, type)
        {
            this.taskinfo = taskinfo;
        }
    }
}
